home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / ismin.z / ismin
Encoding:
Text File  |  2002-10-03  |  7.6 KB  |  199 lines

  1.  
  2.  
  3.  
  4. IIIISSSSMMMMIIIINNNN((((3333SSSS))))                                                            IIIISSSSMMMMIIIINNNN((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      IIIISSSSMMMMIIIINNNN, IIIIDDDDMMMMIIIINNNN - Searches a real vector for the first occurrence of the
  10.      minimum value
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      Single precision
  14.  
  15.           Fortran:
  16.                iiiinnnntttteeeeggggeeeerrrr _I_S_M_I_N
  17.                iiiinnnntttteeeeggggeeeerrrr iiiinnnnddddeeeexxxx
  18.                _i_n_d_e_x ==== IIIISSSSMMMMIIIINNNN ((((_n,,,, _x,,,, _i_n_c_x))))
  19.  
  20.           C/C++:
  21.                ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>>
  22.                iiiinnnntttt IIIISSSSMMMMIIIINNNN ((((iiiinnnntttt _n,,,, ffffllllooooaaaatttt *_x,,,, iiiinnnntttt _i_n_c_x))));;;;
  23.  
  24.      Double precision
  25.  
  26.           Fortran:
  27.                iiiinnnntttteeeeggggeeeerrrr IIIIDDDDMMMMIIIINNNN
  28.                iiiinnnntttteeeeggggeeeerrrr _i_n_d_e_x
  29.                _i_n_d_e_x ==== IIIIDDDDMMMMIIIINNNN ((((_n,,,, _x,,,, _i_n_c_x))))
  30.  
  31.           C/C++:
  32.                ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>>
  33.                iiiinnnntttt iiiiddddmmmmiiiinnnn ((((iiiinnnntttt _n,,,, ddddoooouuuubbbblllleeee *_x,,,, iiiinnnntttt _i_n_c_x))));;;;
  34.  
  35. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  36.      These routines are part of the SCSL Scientific Library and can be loaded
  37.      using either the ----llllssssccccssss or the ----llllssssccccssss____mmmmpppp option.  The ----llllssssccccssss____mmmmpppp option
  38.      directs the linker to use the multi-processor version of the library.
  39.  
  40.      When linking to SCSL with ----llllssssccccssss or ----llllssssccccssss____mmmmpppp, the default integer size is
  41.      4 bytes (32 bits). Another version of SCSL is available in which integers
  42.      are 8 bytes (64 bits).  This version allows the user access to larger
  43.      memory sizes and helps when porting legacy Cray codes. It can be loaded
  44.      by using the ----llllssssccccssss____iiii8888 option or the ----llllssssccccssss____iiii8888____mmmmpppp option. A program may use
  45.      only one of the two versions; 4-byte integer and 8-byte integer library
  46.      calls cannot be mixed.
  47.  
  48.      The C and C++ prototypes shown above are appropriate for the 4-byte
  49.      integer version of SCSL. When using the 8-byte integer version, the
  50.      variables of type iiiinnnntttt become lllloooonnnngggg lllloooonnnngggg and the <<<<ssssccccssssllll____bbbbllllaaaassss____iiii8888....hhhh>>>> header
  51.      file should be included.
  52.  
  53. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  54.      These routines search a vector for the first occurrence of the minimum
  55.      value.
  56.  
  57.      IIIISSSSMMMMIIIINNNN and IIIIDDDDMMMMIIIINNNN returns the first index _i such that
  58.  
  59.           x  = MIN x  : j = 1, ..., n (j = 0, ..., n-1 for C/C++)
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. IIIISSSSMMMMIIIINNNN((((3333SSSS))))                                                            IIIISSSSMMMMIIIINNNN((((3333SSSS))))
  71.  
  72.  
  73.  
  74.            i        j
  75.  
  76.  
  77.      where _x_j is an element of a real vector.
  78.  
  79.      These functions have the following arguments:
  80.  
  81.      _i_n_d_e_x Integer.  (output)
  82.            First index of minimum value.
  83.  
  84.      _n     Integer.  (input)
  85.            Number of elements to process in the vector to be searched.  If
  86.            _n <= 0, IIIISSSSMMMMIIIINNNN and IIIISSSSMMMMIIIINNNN return 0 (-1 for C/C++).
  87.  
  88.      _x     Array _x of dimension 1 + (_n-1) * |_i_n_c_x|.
  89.            IIIISSSSMMMMIIIINNNN: Single precision array.
  90.            IIIIDDDDMMMMIIIINNNN: Double precision array.
  91.            Array containing the vector to be searched.
  92.  
  93.      _i_n_c_x  Integer.  (input)
  94.            Increment between elements of _x.
  95.  
  96. NNNNOOOOTTTTEEEESSSS
  97.      When scanning backward (_i_n_c_x < 0), each routine starts at the end of the
  98.      vector and moves backward, as follows:
  99.  
  100.      Fortran:
  101.  
  102.           x(1 - incx * (n-1)), x(1 - incx * (n-2)), ..., x(1)
  103.  
  104.  
  105.      C/C++:
  106.  
  107.           x[-incx * (n-1)], x[-incx * (n-2)], ..., x(0)
  108.  
  109.  
  110.      The desired value is at:
  111.  
  112.      Fortran:
  113.  
  114.           |x(1 + incx * (index-1))| when incx > 0
  115.  
  116.           |x(1 - incx * (n-index))| when incx < 0
  117.  
  118.  
  119.      C/C++:
  120.  
  121.           |x[incx * (index-1)]| when incx > 0
  122.  
  123.           |x[-incx * (n-index)]| when incx < 0
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. IIIISSSSMMMMIIIINNNN((((3333SSSS))))                                                            IIIISSSSMMMMIIIINNNN((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      These routines are extensions to the Level 1 Basic Linear Algebra
  141.      Subprograms (Level 1 BLAS).
  142.  
  143.  
  144.    DDDDaaaattttaaaa TTTTyyyyppppeeeessss
  145.      The following data types are described in this documentation.
  146.  
  147.      TTTTeeeerrrrmmmm UUUUsssseeeedddd                     DDDDaaaattttaaaa ttttyyyyppppeeee
  148.  
  149.      Fortran:
  150.  
  151.           Array dimensioned _n           xxxx((((nnnn))))
  152.  
  153.           Integer                       IIIINNNNTTTTEEEEGGGGEEEERRRR (IIIINNNNTTTTEEEEGGGGEEEERRRR****8888 for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]])
  154.  
  155.           Single precision              RRRREEEEAAAALLLL
  156.  
  157.           Double precision              DDDDOOOOUUUUBBBBLLLLEEEE PPPPRRRREEEECCCCIIIISSSSIIIIOOOONNNN
  158.  
  159.      C/C++:
  160.  
  161.           Array dimensioned _n           xxxx[[[[_n]]]]
  162.  
  163.           Integer                       iiiinnnntttt (lllloooonnnngggg lllloooonnnngggg for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]])
  164.  
  165.           Single precision              ffffllllooooaaaatttt
  166.  
  167.           Double precision              ddddoooouuuubbbblllleeee
  168.  
  169. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  170.      IIIINNNNTTTTRRRROOOO____SSSSCCCCSSSSLLLL(3S), IIIINNNNTTTTRRRROOOO____BBBBLLLLAAAASSSS1111(3S)
  171.  
  172.      IIIINNNNTTTTRRRROOOO____CCCCBBBBLLLLAAAASSSS(3S) for information about using the C interface to Fortran 77
  173.      Basic Linear Algebra Subprograms (legacy BLAS) set forth by the Basic
  174.      Linear Algebra Subprograms Technical Forum.
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.                                                                         PPPPaaaaggggeeee 3333
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.